<?php
include 'global.php';
include 'sub/editor.php';
include 'dichvuAd.php';
include 'sub/header.php';
?>

<form method="post" onsubmit="tinyMCE.get('product_detail').save();"  action="<?php echo $_SERVER['REQUEST_URI']; ?>"  enctype="multipart/form-data">
    <div class="content-outer">
        <div class="content-inner">
            <div class="title_border">
                <h1>Thêm bài viết</h1>
                <div style="margin-top: 15px" class="rightbt">
                    <ul>
                        <li><a href="dichvuList"><span><span>Danh sách bài viết</span></span></a></li>
                    </ul>
                </div>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="duhoctb">
                <tr>
                    <td><br />
                        <table width="100%" border="0" cellspacing="0" cellpadding="4" class="productTb">
                            <tr>
                                <td width="110" align="right">Chuyên đề</td>
                                <td>
                                    <select name="typelist" id="select">
                                        <?php echo $typelist ?>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">Tiêu đề</td>
                                <td><input type="text" name="title" id="textfield" class="text"/></td>
                            </tr>
                            <tr>
                                <td align="right">Tiêu đề tiếng Anh</td>
                                <td><input type="text" name="title2" id="textfield" class="text"/></td>
                            </tr>
                            <tr>
                                <td align="right">Giới thiệu</td>
                                <td><input type="text"  name="intro" id="textfield2" class="text" /></td>
                            </tr>
                            <tr>
                                <td align="right">Giới thiệu tiếng Anh</td>
                                <td><input type="text"  name="intro2" id="textfield2" class="text" /></td>
                            </tr>
                            <tr>
                                <td align="right">Ảnh đại diện</td>
                                <td><input type="file" name="file" id="file"  style="width: 300px"/></td>
                            </tr>
                            <tr>
                                <td align="right" valign="top">Nội dung</td>
                                <td><textarea name="content" style="height: 500px; width: 100%"></textarea></td>
                            </tr>
                            <tr>
                                <td align="right" valign="top">Nội dung tiếng Anh</td>
                                <td><textarea name="ct2" style="height: 500px; width: 100%"></textarea></td>
                            </tr>
                            <tr>
                                <td align="right">&nbsp;</td>
                                <td><input type="submit" name="button" id="button" value="Thêm bài viết" /></td>
                            </tr>
                        </table></td>
                </tr>
            </table>
        </div>
    </div>

</form>
<?php
                                        include 'sub/footer.php';
?>